﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ALE_Server.EC
{
    [Serializable]
    [DataContract]
    public class ECGroupSpec
    {
        private IList<string> m_PatternList = new List<string>();

        [DataMember]
        public IList<string> PatternList
        {
            get
            {
                return m_PatternList;
            }
            set
            {
                m_PatternList = value;
            }
        }

        public void AddPattern(string pattern)
        {
            m_PatternList.Add(pattern);
        }

        public void RemovePattern(string pattern)
        {
            m_PatternList.Remove(pattern);
        }

        public override string ToString()
        {
            return XmlSerializeHelper.Serialize(this);
        }
    }
}
